package tgc.edu.exam.entity;

import java.util.UUID;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import org.springframework.data.annotation.CreatedBy;

import tgc.edu.exam.custom.BaseEntity;

/****
 * 课程成绩表
 * @author zmq
 *
 */

@Entity
public class KcExamination extends BaseEntity<UUID> {

	private Teacher teacher;
	/**
	 * 课程uuid
	 */
	private String kcuuid;
	/**
	 * 课程名称
	 */
	private String kcname;
	/***
	 * 班级id
	 */
	private String banjiid;
	/***
	 * 班级名称
	 */
	private String banji;
	private Student student;
	/***
	 * 分数（百分制）
	 */
	private Double score;
	@ManyToOne
	@CreatedBy
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public String getKcuuid() {
		return kcuuid;
	}
	public void setKcuuid(String kcuuid) {
		this.kcuuid = kcuuid;
	}
	public String getKcname() {
		return kcname;
	}
	public void setKcname(String kcname) {
		this.kcname = kcname;
	}
	@ManyToOne
	@CreatedBy
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public Double getScore() {
		return score;
	}
	public void setScore(Double score) {
		this.score = score;
	}
	
	public String getBanjiid() {
		return banjiid;
	}
	public void setBanjiid(String banjiid) {
		this.banjiid = banjiid;
	}
	public String getBanji() {
		return banji;
	}
	public void setBanji(String banji) {
		this.banji = banji;
	}
	
}
